#include <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>
using namespace std;
const int maxn = 1100;
int a[maxn];
int main()
{
	int t;
	scanf("%d",&t);
	while(t--)
	{
		int n,x;
		int num0 = 0;
		int num1 = 0;
		scanf("%d %d",&n,&x);
		for(int i = 0;i<n;i++)
		{
			scanf("%d",&a[i]);
			if(a[i]%2) num1++;
			else num0++;
		}
		if(x==2&&num1&&num0) printf("YES\n");
		else if(x==1&&num1) printf("YES\n");
		else if(x==1&&!num1) printf("NO\n");
		else 
		{
			int flag = 0;
			for(int i = 1;i<=x;i+=2)
			{
				if(i<=num1&&x-i<=num0)
				{
					flag = 1;
					break;
				}
			}
			if(flag) printf("YES\n");
			else printf("NO\n");
		}
	}
} 
